package pasantias.Dominio;

public class Square extends Rectangle{

	private final Dot vertex;
	private final int size;
	
	public Square(Dot dot, int size) {
		super(dot, size, size);
		this.vertex = dot;
		this.size = size;
	}
	
//	@Override
//	public Dot getVertex() {
//		return vertex;
//	}
//
//	public int getSize() {
//		return size;
//	}
//
	@Override
	public String toString(){
		return vertex.toString() + " Size " + size;
	}

	public int getSize() {
		// TODO Auto-generated method stub
		return size;
	}

	
	@Override
	public void accept(FiguresVisitor visitor) {
		visitor.visit(this);
	}


}

